Release 10.1A: OpenEdge Development:
.NET Open Clients


General property accessor methods for the RunTimeProperties class

You can access global properties by property name using the get and set general purpose methods. When you use these methods, you must call the correct accessor based on the data type of the property. Here is the syntax for these general methods:

Get property methods syntax

public static string    GetStringProperty(string propName) 
public static int       GetIntProperty(string propName) 
public static long      GetLongProperty(string propName) 
public static boolean   GetBooleanProperty(String propName) 

Set property methods syntax

public static void   SetStringProperty(string propName, string propValue) 
public static void   SetIntProperty(string propName, int propValue) 
public static void   SetLongProperty(string propName, long propValue) 
public static void   SetBooleanProperty(string propName, boolean propValue) 

propName

The property name. This can be any of the properties listed in the tables in the "Available properties" section.

propValue

The value for propName.

Example

For example, to set the PROGRESS.Session.InitialConnections property to 5, use the following method to set an integer property:

RunTimeProperties.SetIntProperty(“PROGRESS.Session.InitialConnections”,5); 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095